PESetAreaFormat

Use PESetAreaFormat to set the area format settings for selected areas in the specified report to the values in PESectionOptions. This function can be used to provide specialized formatting for printing invoices, form letters, printing to pre-printed forms, etc. It allows you to hide an area, insert a page break either before or after an area begins, reset the page number to 1 after a group value prints, prevent page breaks from spreading data from a single record over two pages, and to print group values only at the bottom of a page.

C Syntax
BOOL CRPE_API PESetAreaFormat (
        short printJob,
        short areaCode,
        PESectionOptions FAR *options );
Parameters

printJob

Specifies the print job for which you want to set area formatting options.

areaCode

Specifies the Section Codes for the report area for which you want to set formatting options. See the information on area codes in Working with section codes.

options

Specifies a pointer to PESectionOptions. Use this structure to set your section options.

Returns
Remarks

This function should be called before PEStartPrintJob, or the results may be inconsistent or unexpected.

VB Syntax
Declare Function PESetAreaFormat Lib "crpe32.dll" ( ByVal printJob As 
Integer,
    ByVal areaCode As Integer, Options As PESectionOptions ) As Integer
Delphi Syntax
function PESetAreaFormat (
    printJob: Word;
    areaCode: Integer;
    var options: PESectionOptions
    ): Bool stdcall;


Seagate Software IMG Holdings, Inc.
http://www.seagatesoftware.com
Support services:
http://support.seagatesoftware.com